% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shapefile_xyz.R
\name{shapefile_clean}
\alias{shapefile_clean}
\title{Drop invalid rows, warn if all invalid, add unique ID, transform (CRS)}
\usage{
shapefile_clean(shp, crs = 4269)
}
\arguments{
\item{shp}{a shapefile object using sf::st_read()}

\item{crs}{used in shp <- sf::st_transform(shp, crs = crs), default is crs = 4269 or Geodetic CRS NAD83}
}
\value{
like input shp, but applying crs and dropping if not valid,
plus column ejam_uniq_id 1:NROW()
}
\description{
Drop invalid rows, warn if all invalid, add unique ID, transform (CRS)
}
\seealso{
\code{\link[=shapefile_from_folder]{shapefile_from_folder()}}
}
